package cm.cool.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cm.cool.web.bean.Bill;
import cm.cool.web.service.bill.BillService;
import cm.cool.web.util.respon.PaginationDto;
import cm.cool.web.util.respon.R;

@Controller
@RequestMapping("/Bill")
public class BillController {
		
	@Autowired
	private BillService billService;
	
	/**
	 * 按条件查找
	 * @param bill
	 * @param paginationDto
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/findUserNameBill")
	public R findUserNameBill(Bill bill,PaginationDto paginationDto){
		return billService.findUserNameBill(bill, paginationDto);
	}
	
	
	
}	
